package net.obsearch.storage;


/*
 OBSearch: a distributed similarity search engine This project is to
 similarity search what 'bit-torrent' is to downloads. 
 Copyright (C) 2008 Arnoldo Jose Muller Molina

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import java.nio.ByteBuffer;

/**
 * TupleBytes holds a key in bytes and a value in bytes.
 * @author Arnoldo Jose Muller Molina
 */

public class TupleBytes
        extends Tuple {
    protected byte[] key;

    public TupleBytes(){
    	super();
    	key = null;    	
    }
    public TupleBytes(byte[] key, byte[] value) {
        super(value);
        this.key = key;
    }

    public byte[] getKey() {
        return key;
    }
}
